package edu.iyte.ceng316.ui.phonebook.right;

import javax.swing.JSplitPane;

import edu.iyte.ceng316.ui.phonebook.mediator.IPhoneBookMediator;


public class RightSplitPane extends JSplitPane {
    TopPanel tp;
    BottomPanel bp;
    IPhoneBookMediator iPhoneBookMediator;
  
	/**
	 * Create the panel.
	 */
	public RightSplitPane() {
		setOrientation(JSplitPane.VERTICAL_SPLIT);
		tp = new TopPanel();
		bp = new BottomPanel();
		setResizeWeight(1D);
		setTopComponent(tp);
		setBottomComponent(bp);
	}
	public TopPanel getTopPanel() {
		return tp;
	}
	public void setTopPanel(TopPanel tp) {
		this.tp = tp;
	}
	public BottomPanel getBottomPanel() {
		return bp;
	}
	public void setBottomPanel(BottomPanel bp) {
		this.bp = bp;
	}
	public void setIPhoneBookMediator(IPhoneBookMediator iPhoneBookMediator) {
		this.iPhoneBookMediator = iPhoneBookMediator;
		tp.setIPhoneBookMediator(iPhoneBookMediator);
	}

	
}
